<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Alex
 * Created Time: 2019/6/23 22:15
 * Modified Time: 2019/6/23 22:15
 * Version: 2.0
 */
namespace App\Modules\Order\Validators;
use Flower\Core\Repository\Contracts\ValidatorInterface;
use Flower\Core\Repository\Validator\LaravelValidator;
class OrderItemValidator extends LaravelValidator
{
    protected $rules = [
        ValidatorInterface::RULE_CREATE => [
            'order_id' => 'sometimes|required',
	        'service_id' => 'sometimes|required',
        ]
    ];
    protected $messages = [
        'order_id.required' => '订单号不能为空',
	    'service_id.required' => '订单号不能为空',
    ];
}